import Layout from '@/layout'
export let admin = [{
    path: '/login',
    meta:{
      // 页面标题title
      title: '登录'
  },
    component: () => import('@/views/login/index'),
    hidden: true
  },

  {
    path: '/404',
    component: () => import('@/views/404'),
    meta:{
      // 页面标题title
      title: '404'
  },
    hidden: true
  },

  {
    path: '/',
    component: Layout,
    redirect: '/homepage',
    children: [{
      path: 'homepage',
      name: '首页',
      component: () => import('@/views/homepage/index'),
      meta: {
        title: '安监行业运营管理系统',
        icon: 'dashboard'
      }
    }]
  },


  {
    path: '/qiyeguanli',
    component: Layout,
    name: '企业管理账号',
    meta: {
      title: '企业管理账号',
      icon: 'nested'
    },
    children: [{
        path: 'zhanghaoliebiao',
        component: () => import('@/views/admin/gongsiliebiao'), // Parent router-view
        name: '公司列表',
        meta: {
          title: '公司列表'
        },

      },
      {
        path: 'tianjiagongsi',
        component: () => import('@/views/admin/tianjiagongsi'), // Parent router-view
        name: '添加公司',
        meta: {
          title: '添加公司'
        },

      }
      // ,
      // {
      //   path: 'zhanghaoxinxi',
      //   component: () => import('@/views/admin/zhanghaoxinxi'), // Parent router-view
      //   name: '账号列表',
      //   meta: {
      //     title: '账号列表'
      //   },

      // },
      // {
      //   path: 'tianjiazhanghao',
      //   component: () => import('@/views/admin/tianjiazhanghao'), // Parent router-view
      //   name: '添加账号',
      //   meta: {
      //     title: '添加账号'
      //   },

      // },
    ]
  },

  {
    path: '/nologin',
    component: () => import('@/views/nologin/nologin'), 
    name: '免登录',
    hidden:false,
    meta: {
      title: '免登录',
      icon: 'nested'
    },
  },

  // 404 page must be placed at the end !!!
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]
